631141d68623207c6351351d1235e8a6f29715eb,src/test/java/guru/nidi/graphviz/model/ExampleTest.java,ExampleTest,ex5,#,137
Before Change
final Graph g = graph("ex5").directed()
.general().attr("ranksep", .75, "size", "7.5,7.5")
.nodes().attr(Shape.RECTANGLE)
.graphs(
graph().nodes().attr(Shape.NONE).nodes(
node("past").link(
node("1978").link(
node("1980").link(
node("1982").link(
node("1983").link(
node("1985").link(
node("1986").link(
node("1987").link(
node("1988").link(
node("1989").link(
node("1990").link(
node("future")))))))))))))
.nodes(bsh, make, sccs, reiser, csh, yacc, cron, rcs, emacs, build, vi, curses),
graph().general().attr(Rank.SAME).nodes().attr(Shape.ELLIPSE).nodes(sis, cfg, archlib, proc),
graph().general().attr(Rank.SAME).nodes("past").nodes(sccs, make, bsh, yacc, cron),
graph().general().attr(Rank.SAME).nodes("1978").nodes(reiser, csh),
graph().general().attr(Rank.SAME).nodes("1980").nodes(build, emacs, vi),
graph().general().attr(Rank.SAME).nodes("1982").nodes(rcs, curses, imx, syned),
graph().general().attr(Rank.SAME).nodes("1983").nodes(ksh, ifs, ttu),
graph().general().attr(Rank.SAME).nodes("1985").nodes(nmake, peggy),
graph().general().attr(Rank.SAME).nodes("1986").nodes(cs, ncpp, kshi, cursesi, pg2),
graph().general().attr(Rank.SAME).nodes("1987").nodes(dag, csas, ansiCpp, fdelta, d3fs, nmake2),
graph().general().attr(Rank.SAME).nodes("1988").nodes(cia, sbcs, pax, ksh88, pegasus, backtalk),
graph().general().attr(Rank.SAME).nodes("1989").nodes(ciapp, app, ship, dataShare, ryacc, mosaic),
graph().general().attr(Rank.SAME).nodes("1990").nodes(dot, dia, libft, coshell, sfio, ifsi, mlx, kyacc, yeast),
graph().general().attr(Rank.SAME).nodes("future").nodes(adv))
.nodes(
sccs.link(rcs, nmake, d3fs),
make.link(build, nmake),
build.link(nmake2),
After Change
.general().attr("ranksep", .75, "size", "7.5,7.5")
.nodes().attr(Shape.RECTANGLE)
.with(
graph().nodes().attr(Shape.NONE).with(
node("past").link(
node("1978").link(
node("1980").link(
node("1982").link(
node("1983").link(
node("1985").link(
node("1986").link(
node("1987").link(
node("1988").link(
node("1989").link(
node("1990").link(
node("future")))))))))))),
bsh, make, sccs, reiser, csh, yacc, cron, rcs, emacs, build, vi, curses),
graph().general().attr(Rank.SAME).nodes().attr(Shape.ELLIPSE).with(sis, cfg, archlib, proc),
graph().general().attr(Rank.SAME).nodes("past").with(sccs, make, bsh, yacc, cron),
graph().general().attr(Rank.SAME).nodes("1978").with(reiser, csh),
graph().general().attr(Rank.SAME).nodes("1980").with(build, emacs, vi),